/**
 * 
 */
package com.munoor.dalai.server.model.wrappers;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.munoor.dalai.server.model.Listing;

/**
 * @author Osho Ilamah
 * @since  version 1.0 (27 March 2011)
 */
@XmlRootElement(name = "listing")
public class WrappedListing extends WrappedEntity {
   private Listing entity = null;
    
   public WrappedListing() {
	   entity = new Listing();
   }

   public WrappedListing(Listing entity) {
	   this.entity = entity;
   }
   
	@XmlElement
	public String getTitle() {
		return entity.getTitle();
	}
   
	public void setTitle(String title) {
		entity.setTitle(title);
	}
   
	@XmlElement
	public long getListingId() {
		return entity.getListingId();
	}
   
	public void setListingId(long listingId) {
		entity.setListingId(listingId);
	}
	
	@XmlElement
	public short getCategoryId() {
		return entity.getCategoryId();
	}
   
	public void setCategoryId(short categoryId) {
		entity.setCategoryId(categoryId);
	}
 
	@XmlElement
	public short getLevelId() {
		return entity.getLevelId();
	}
   
	public void setLevelId(short levelId) {
		entity.setLevelId(levelId);
	}
	
	@XmlElement
	public String getLocationId() {
		return entity.getLocationId();
	}
   
	public void setLocationId(String locationId) {
		entity.setLocationId(locationId);
	}
	
	@XmlElement
	public int getSalaryMax() {
		return entity.getSalaryMax();
	}
   
	public void setSalaryMax(int salaryMax) {
		entity.setSalaryMax(salaryMax);
	}
	
	@XmlElement
	public int getSalaryMin() {
		return entity.getSalaryMin();
	}
   
	public void setSalaryMin(int salaryMin) {
		entity.setSalaryMin(salaryMin);
	}

	@XmlElement
	public int getAgeMax() {
		return entity.getAgeMax();
	}
   
	public void setAgeMax(int ageMax) {
		entity.setAgeMax(ageMax);
	}
	
	@XmlElement
	public int getAgeMin() {
		return entity.getAgeMin();
	}
   
	public void setAgeMin(int ageMin) {
		entity.setAgeMin(ageMin);
	}
	
	@XmlElement
	public long getCompanyId() {
		return entity.getCompanyId();
	}
   
	public void setCompanyId(long companyId) {
		entity.setCompanyId(companyId);
	}
	
	@XmlElement
	public long getSourceId() {
		return entity.getSourceId();
	}
   
	public void setSourceId(long sourceId) {
		entity.setSourceId(sourceId);
	}
	
	@XmlElement
	public String getLongDesc() {
		return entity.getLongDesc();
	}
   
	public void setLongDesc(String longDesc) {
		entity.setLongDesc(longDesc);
	}
	
/*	@XmlElement
	public String getShortDesc() {
		return entity.getShortDesc();
	}
   
	public void setShortDesc(String shortDesc) {
		entity.setShortDesc(shortDesc);
	}*/
	
	@XmlElement
	public short getActive() {
		return entity.getActive();
	}
   
	public void setActive(short active) {
		entity.setActive(active);
	}
	
	@XmlElement
	public int getViews() {
		return entity.getViews();
	}
   
	public void setViews(int views) {
		entity.setViews(views);
	}

	@XmlElement
	public long getExpiry() {
		return entity.getExpiry();
	}
   
	public void setExpiry(long expiry) {
		entity.setExpiry(expiry);
	}
	
	@XmlElement
	public long getReleased() {
		return entity.getReleased();
	}
   
	public void setReleased(long released) {
		entity.setReleased(released);
	}
	
	public Listing unmarshall() {
		return entity;
	}
}
